using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public enum BuffUpdateTimeEnum
{
    Add,
    Replace,
    Keep,
}


public enum BuffRemoveStackUpdateEnum
{
    Clear,
    Reduce,
}

public class BuffInfo
{
    public BuffData buffData;
    public GameObject creator;
    public GameObject target;
    public float durationTimer;
    public float tickTimer;
    public int curStack = 1;
    public bool add_by_another = false;  // 用这个来区分是否其它卡牌上的buff, 在复制卡牌的时候有用
    
    public override string ToString()
    {
        return
            $"BuffInfo --- {buffData}\n--- creator: {creator.name}, target: {target.name}, durationTimer: {durationTimer}, tickTimer: {tickTimer}, curStack: {curStack}, add_by_another: {add_by_another}";
    }
}

public class DamageInfo
{
    public GameObject creator;
    public GameObject target;
    public float damage;
    public bool active_attack = true;
}



